package field;

import java.util.ArrayList;

import organisms.Organism;

import geom.Segment;
import geom.Vector;

public abstract class FieldInterpreter {
	protected Organism parent;
	AngleField field;
	
	public FieldInterpreter(Organism parent, AngleField field) {
		super();
		this.parent = parent;
		this.field = field;
		
	}
	public Vector preProcess(ArrayList<Segment> segments){
		return new Vector();
	}
	abstract public Vector process(Segment seg, ArrayList<Segment> segments);
	abstract public Vector postProcess(Vector fieldValue, ArrayList<Segment> segments);
	
	public Vector getPos(){
		return parent.getPos();
	}
}
